{php}
    $upload_file_ext  = config("app.site_setting.upload_file_ext");
    $upload_file_size = config("app.site_setting.upload_file_size");
{/php}
<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label for="{$form[type].name}">{$form[type].title}</label>
  <div class="js-upload-file">
    <ul class="list-group uploader-list" id="file_list_{$form[type].name}">
      {notempty name="form[type].value"}
      <li class="list-group-item file-item"><i class="mdi mdi-close-circle-outline remove-file text-danger"></i> {$form[type].value|get_file_name}</li>
      {/notempty}
    </ul>
    <input type="hidden" name="{$form[type].name}" data-multiple="false" data-size="{$form[type]['size']|default=$upload_file_size}" data-ext='{$form[type]["ext"]|default="$upload_file_ext"}' id="{$form[type].name}" value="{$form[type].value|default=''}">
    <div id="picker_{$form[type].name}" class="m-t-10">上传单个文件</div>
    {notempty name="form[type].tips"}
    <small class="form-text text-muted">{$form[type].tips|raw|clear_js}</small>
    {/notempty}
  </div>
</div>
{assign name="useWebuploader" value="1" /}
{assign name="useWebuploaderFiles" value="1" /}